import request from "@/network/require";

//登陆接口
function loginInterface(phone: string, password: string) {
    return request({
        url: "/login/cellphone",
        params: {
            phone: phone,
            password: password
        }
    });
}

//根据用户id获取用户详细信息
function getUserDetail(uid: number) {
    return request({
        url: "/user/detail",
        params: {
            uid: uid
        }
    });
}

function quit() {
    return request({
        url: "/logout",
    });
}

export {loginInterface, getUserDetail, quit}
